import Vue from "vue";
import VueRouter from "vue-router";
import Index from "@/pages/index/index.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Index",
    component: Index
  },
  {
    path: "/protogenesis",
    name: "VueAntdv",
    component: ()=>import("../pages/Protogenesis")
  },
  {
    path: "/demo",
    name: "Demo",
    component: ()=>import("../pages/Protogenesis/code")
  }
];

const router = new VueRouter({
  base: process.env.BASE_URL,
  routes
});

export default router;
